Tutorial for users | English Ver | Draft
1. Connect robot to home WIFI
Put battery and turn switch on
Find WIFI of your robot and connect to it on Laptop. The SSID of robot is Nuibot xxxxxx (e.g., Nuibot 01D5C4)
Open browser and enter 192.168.4.1 on address bar.
Enter SSID and password of your WIFI. Press "confirm".
Wait for connection. After connected, the following inferface would show. Remember the IP of your robot (e.g., 192.168.91.108)
2. Pair robot
Reconnect to home WIFI.
Create new project.
Press "Pair", and enter the IP (e.g., 192.168.91.108) you got on the previous step. After connected, the "Download" button should show up.
3. Calibrate Motor
Press calibration button in the simulator to open calibration dialog.
Drag the slider bar slowly, the corresonding motor would rotate and the string length would change.
Change the string to the state when it is not tight and not loose. Press "Done" when you finish calibration.
(Note: If the slider have reach the limit, press "Done" once and reopen the calibration dialog again.)
4. Create first project (Control motor directly)
Drag out Loops::forever block, put Motor::set motor parameter block inside it. And also add Loops::pause block after it.
https://gyazo.com/c9c2f352f56adfa3e6d94bc20dff00e3
Duplicate blocks inside and change pose value.
https://gyazo.com/85ee0ae15daccec073ab58cb2ff194a8
Switch to Synchronization Mode, the robot would execute your code.
After you are done, press Download and switch to Offline Mode.
(Note: after donwload, robot would execute the code automatically when your restart the robot)
5. Use touch sensor
Open Robot State Inspector and go to Sensors tag.
Watch the value of sensor when you touch (e.g., sensor 0, value 50) and untouch (e.g., sensor 0, value 280)
Use Callbacks::on start touch block, set first input to your sensor id (e.g., 0) and set second input to the value between touch and untouch (e.g., touch: 50, untouch: 280, use 200)
Add your code to control motors inside that blockhttps://gyazo.com/876b529282b6e4a8d5b9337de1e912e9
Use Synchronization Mode to test. Download and switch to Offline Mode after you are done.
6. More complex control on motors